package IC.AST;

import java.util.LinkedList;

public class ScopeStatement extends Statement
{
	private LinkedList<Statement> _listOfStatements;
	
	public Object Visit(Visitor visitor) { return visitor.Visit(this); }
	
	public ScopeStatement(Interval interval, LinkedList<Statement> listOfStatements)
	{
		super(interval);
		_listOfStatements = listOfStatements == null ? new LinkedList<Statement>() : listOfStatements;
		for(Statement statement : listOfStatements)
			GiveBirth(statement);
	}
	
	public LinkedList<Statement> GetListOfStatements() { return _listOfStatements; }
}
